package com.human.controller;


import com.human.entity.Dept;
import com.human.entity.ResultVo;
import com.human.service.IPositionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 职位 前端控制器
 * </p>
 *
 * @author jzq
 * @since 2023-02-28
 */
@RestController
@RequestMapping("/api/position")
@Api(tags = "职位管理")
public class PositionController {

    @Autowired
    IPositionService positionService;


    @GetMapping("/getAllPosition")
    @ApiOperation(value = "获取所有职位")
    public ResultVo getAllPosition(){
        return positionService.getAllPosition();
    }

    @GetMapping("/posnum")
    @ApiOperation(value = "获取各职位人数")
    public ResultVo getPosPersonNum() {
        return positionService.getPosPersonNum();
    }

}

